﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Data.Entity;
using MySql.Data.Entity;

namespace MarkdownWeb.Models
{
    public class TestEntity
    {  
        public int ID { get; set; }
        [MaxLength(30)]       
        public string Name { get; set; }  
        public bool IsFirst { get; set; } 
        public string JsonData { get; set; }
    }
    [DbConfigurationType(typeof(MySqlEFConfiguration))]
    public class TestEntityContext:DbContext
    {
        public TestEntityContext():base("name=DB")
        {

        }

        public DbSet<TestEntity> Tests { get; set; }
    }
}